package com.example.zk2_lx;

import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.hyphenate.easeui.modules.chat.EaseChatFragment;
import com.hyphenate.easeui.modules.chat.interfaces.IChatExtendMenu;

public class MyEaseFragmemt extends EaseChatFragment {
    @Override
    public void initView() {
        super.initView();
        IChatExtendMenu menu = chatLayout.getChatInputMenu().getChatExtendMenu();
        menu.registerMenuItem("红包",R.drawable.cons,300);
    }

    @Override
    public void onChatExtendMenuItemClick(View view, int itemId) {
        super.onChatExtendMenuItemClick(view, itemId);
        if(itemId==300){
            ARouter.getInstance().build("/app/PayActivity").withString("s",getArguments().getString("conversationId")).navigation();
        }
    }
}
